package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 是否推送信息表
 *
 * @author zjl
 * @since 2024-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_pushparents")
@Schema(name = "EduPushparents", title = "是否推送信息表", description = "是否推送信息表实体类")
public class EduPushparents extends Model<EduPushparents> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "pushId", description = "推送家长端id")
    @TableId(value = "push_id", type = IdType.ASSIGN_ID)
    private Long pushId;

    @Schema(name = "year", description = "年度")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "pushTime", description = "推送时间")
    @TableField(value = "push_time")
    private String pushTime;

    @Schema(name = "enrollNum", description = "第几轮报名")
    @TableField(value = "enroll_num")
    private Integer enrollNum;

    @Schema(name = "schoolCategory", description = "推送学段")
    @TableField(value = "school_category")
    private Integer schoolCategory;

    @Schema(name = "areaCode", description = "统筹区")
    @TableField(value = "area_code")
    private String areaCode;
    @Schema(name = "pushStatus", description = "推送状态")
    @TableField(value = "push_status")
    private String pushStatus;

    @Schema(name = "del", description = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Override
    public Serializable pkVal() {
        return this.pushId;
    }
}
